package com.example.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@Schema(description = "课程参数")
public class CourseVo {

    @Schema(description = "id")
    private Integer id;

    @Schema(description = "课程名")
    private String name;

    @Schema(description = "课程编号")
    private Long no;

    @Schema(description = "开课时间")
    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
    private Date startTime;

    @Schema(description = "结课时间")
    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
    private Date endTime;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
    private Date createTime;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
    private Date updateTime;

}
